<template>
 <div>
    <data-analysis @fromSon = "fromSon"></data-analysis>
    <div class="paddingTop50">
      <use-analysis v-if="current == 0"></use-analysis>
<!--      <contrast v-if="current == 1"></contrast>-->
    </div>

 </div>
</template>

<script>
 import dataAnalysis from "./components/dataAnalysisTopbar.vue";
 import useAnalysis from "./components/useAnalysis.vue";
 import contrast from "./components/contrast.vue";

 export default {
   components: {
    dataAnalysis,useAnalysis,contrast
   },
   data () {
     return {
      current:0
     }
   },
   mounted() {
   },
   methods: {
    fromSon(e){
      this.current = e
    }
   },
 }
</script>

<style scoped lang='scss' >
.paddingTop50{
  padding-top: 50px;
}

</style>
